(add-to-list 'load-path "~/.emacs.d/plugins/lsp/vue-lsp")
(require 'lsp-mode)
(require 'lsp-vue)
(add-hook 'vue-mode-hook #'lsp-vue-mmm-enable)

(require 'company-quickhelp)
(require 'company-lsp)
(company-quickhelp-mode t)

(setq company-lsp-enable-snippet t)
(setq company-minimum-prefix-length 1)
(setq company-dabbrev-downcase nil)
(setq company-idle-delay 0.5)
(setq company-idle-delay 0.5)
(add-hook 'company-mode-hook 'company-quickhelp-mode)
(add-to-list 'company-backends 'company-lsp)
(add-to-list 'auto-mode-alist '("\\.js\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.vue\\'" . web-mode))
(add-hook 'web-mode-hook 'company-mode)
(add-hook 'web-mode-hook 'lsp-vue-enable)

(provide 'init-lsp-vue)
